package com.sth.springframework.test;

import org.junit.Test;

/**
 * @Author: sitianhong
 * @Description:
 * @Since: create in 2021/8/27 0027 21:51
 */
public class ApiTest1 {

    @Test
    public void test_BeanFacotry() {
//        //1.初始化工厂
//        BeanFactory beanFactory = new BeanFactory();
//        //2.注入bean
//        beanFactory.registerBeanDefinition("userService", new BeanDefinition(new UserService()));
//        // 3.获取bean
//        UserService userService = (UserService) beanFactory.getBean("userService");
//        userService.queryUserInfo();
    }
}
